import request from '@/utils/request'
import { getToken } from '@/utils/auth'
import { param } from '@/utils/index'

// 分页
export function pagingFinaceAccountStatement(query) {
  return request({
    url: '/data/finaceAccountStatement/paging',
    method: 'get',
    params: query
  })
}

// 详情分页
export function pagingIncomeExpenseByFinacec(query) {
  return request({
    url: '/data/finaceAccountStatement/pagingIncomeExpenseByFinacec',
    method: 'get',
    params: query
  })
}

// 导出
export function exportFinaceAccountStatement(entity) {
  return process.env.BASE_API + '/data/finaceAccountStatement/exportFinaceAccountStatement?' + param(entity) + '&accessToken=' + getToken()
}

// 导出日报表
export function exportEnterpriseIncomeExpense(entity) {
  return process.env.BASE_API + '/user/enterpriseIncomeExpense/exportEnterpriseIncomeExpense?' + param(entity) + '&accessToken=' + getToken()
}

